//
//  LoginViewController.m
//  ChhOrderApp
//
//  Created by chh on 16/8/11.
//  Copyright © 2016年 chh. All rights reserved.
//

#import "LoginViewController.h"
#import "BaseTabBarController.h"
#import "RegisterViewController.h"

@interface LoginViewController ()

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}


#pragma mark
#pragma mark -- 1:为登陆按钮  2:为注册按钮

- (IBAction)loginAction:(UIButton*)sender {
    
    if (sender.tag == 1) {// 登陆
        
        BaseTabBarController *basetabBar = [[BaseTabBarController alloc]init];
        
        [self presentViewController:basetabBar animated:YES completion:nil];
        
    }
    else{// 注册
        
        RegisterViewController *basetabBar = [[RegisterViewController alloc]initWithNibName:@"RegisterViewController" bundle:nil];
        [self presentViewController:basetabBar animated:YES completion:nil];
        
    }
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
